
import { createRouter, createWebHashHistory, type RouteRecordRaw } from 'vue-router'



const routes: RouteRecordRaw[] = [

  // 首页
  {
    path: '/',
    name: 'home',
    component: () => import('@/views/home/HomePage.vue')
  },


  // 登录页面
  {
    path:'/login',
    name:'login',
    component:()=>import('@/views/login/Login.vue')
  },

  // 注册
  {
    path:'/registered',
    name:'registered',
    component:()=>import('@/views/login/Registered.vue')
  },

  // 找回密码
  {
    path:'/retrievepassword',
    name:'retrievepassword',
    component:()=>import('@/views/login/RetrievePassword.vue')
  },

  // 重定向
  {
    path:'/:pathMatch(.*)*',
    redirect:'/'
  }


]

const router = createRouter({
  history: createWebHashHistory(),
  routes,
})

export default router
